home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / linux / xfree86 / DOC / BUILD < prev    next >
Encoding:
Text File  |  1998-01-07  |  8.9 KB  |  463 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.                    Building XFree86
  11.  
  12.                   David Dawes
  13.  
  14.                   2 June 1997
  15.  
  16.  
  17.  
  18.                    Abstract
  19.  
  20.      This document describes how to build XFree86 from the source distri-
  21.      bution.  It covers building from the full source distribution as well
  22.      as from the cut-down source distribution available for building only
  23.      the X servers.  It is designed to be used in conjunction with the OS-
  24.      specific README files.
  25.  
  26.  
  27.  
  28. 1.  Building XFree86 From a Source Distribution
  29.  
  30.      NOTE:  Refer to the appropriate OS-specific README file before
  31.      attempting to build XFree86.  These files contain additional informa-
  32.      tion that you may need to successfully build under your OS.
  33.  
  34. We highly recommend using GCC-2 to build XFree86.  Do not use version 2.6.0 or
  35. 2.4.x versions prior to 2.4.5 due to bugs that cause either build or execution
  36. failures.  (gcc-2 is available from prep.ai.mit.edu and other sites archiving
  37. GNU source.)
  38.  
  39. 1.1  How to get the XFree86 3.3 source
  40.  
  41. There are a few starting points for getting the XFree86 source.  One option is
  42. to start directly with the XFree86 3.3 source distribution.  In this case, the
  43. procedure is as follows:
  44.  
  45.    o The XFree86 3.3 source is contained in files X33src-1.tgz, X33src-2.tgz
  46.      and X33src-3.tgz.    These can be found at
  47.      ftp://ftp.xfree86.org/pub/XFree86/3.3/source/ and similar locations on
  48.      XFree86 mirror sites.  X33src-2.tgz contains the fonts and documentation
  49.      source.  X33src-3.tgz contains the hardcopy documentation.  X33src-1.tgz
  50.      contains everything else.    If you don't need the docs or fonts you can get
  51.      by with only X33src-1.tgz.
  52.  
  53.    o Extract each of these files by running the following from a directory on a
  54.      filesystem containing enough space (the full source requires around 130MB,
  55.      and a similar amount is required in addition to this for the compiled
  56.      binaries):
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. Building XFree86
  65.  
  66.  
  67.  
  68.  
  69.  
  70. Building XFree86
  71.  
  72.  
  73.  
  74.             gzip -d < X33src-1.tgz | tar vxf -
  75.             gzip -d < X33src-2.tgz | tar vxf -
  76.             gzip -d < X33src-3.tgz | tar vxf -
  77.  
  78.  
  79.  
  80. Another option is to start with the X11R6.3 source distribution and patch it up
  81. to XFree86 3.3.  In this case you need to do the following:
  82.  
  83.    o Start with the X Consortium's X11R6.3 distribution with public patch 1
  84.      applied.  This can be obtained by following the links from the X home page
  85.      <URL:http://www.x.org>.
  86.  
  87.    o Get the files R6.3pl1-3.3.diff1.gz, R6.3pl1-3.3.diff2.gz,
  88.      R6.3pl1-3.3.diff3.gz, R6.3pl1-3.3.diff4.gz, and cfont33.tgz from
  89.      ftp://ftp.xfree86.org/pub/XFree86/3.3/patches/ (or a similar location on
  90.      mirror sites).  To upgrade the source to XFree86 3.3, run the following
  91.      from directory containing the xc directory of the X11R6.3 pl1 source tree:
  92.  
  93.  
  94.             gzip -d < R6.3pl1-3.3.diff1.gz | patch -p0 -E
  95.             gzip -d < R6.3pl1-3.3.diff2.gz | patch -p0 -E
  96.             gzip -d < R6.3pl1-3.3.diff3.gz | patch -p0 -E
  97.             gzip -d < R6.3pl1-3.3.diff4.gz | patch -p0 -E
  98.             gzip -d < cfont33.tgz | tar vxf -
  99.  
  100.  
  101.  
  102.      Be sure to do this with a clean unmodified source tree.  If you don't some
  103.      patches may fail.
  104.  
  105. If you only want to build the XFree86 X servers, you can use a cut-down version
  106. of the XFree86 source tree called the ``servers only'' distribution.  If you
  107. choose this option, do the following:
  108.  
  109.    o Get the X33servonly.tgz file from
  110.      ftp://ftp.xfree86.org/pub/XFree86/3.3/source/ (or a similar locations on
  111.      mirror sites.
  112.  
  113.    o Extract this by running the following:
  114.  
  115.  
  116.             gzip -d < X33servonly.tgz | tar vxf -
  117.  
  118.  
  119.  
  120. There is no patch to upgrade from the XFree86 3.2 source to 3.3.  The reason
  121. for this is the large number of changes associated with the move from X11R6.1
  122. to X11R6.3.
  123.  
  124. XFree86 supports a small subset of the X Consortium X11R6.1 contrib distribu-
  125. tion.  If you wish to build this, you will need at least the following
  126. files/directories from that distribution:
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. Building XFree86
  137.  
  138.  
  139.  
  140.       contrib/Imakefile
  141.       contrib/programs/Imakefile
  142.       contrib/programs/ico
  143.       contrib/programs/listres
  144.       contrib/programs/showfont
  145.       contrib/programs/viewres
  146.       contrib/programs/xbiff
  147.       contrib/programs/xcalc
  148.       contrib/programs/xditview
  149.       contrib/programs/xedit
  150.       contrib/programs/xev
  151.       contrib/programs/xeyes
  152.       contrib/programs/xfontsel
  153.       contrib/programs/xgc
  154.       contrib/programs/xload
  155.       contrib/programs/xman
  156.       contrib/programs/xmessage
  157.  
  158.  
  159. You will also need the XFree86 patch contrib-3.3.diff.gz.  To apply the patch,
  160. run the following from the directory containing the contrib directory:
  161.  
  162.       gzip -d < contrib-3.3.diff.gz | patch -p0 -E
  163.  
  164.  
  165. Alternatively, you can just get the file X33contrib.tgz from the XFree86 source
  166. directory, and extract it by running:
  167.  
  168.       gzip -d < X33contrib.tgz | tar vxf -
  169.  
  170. If you wish to build the xtest distribution, get the source distribution
  171. X33test.tgz from the XFree86 source directory, and extract it by running:
  172.  
  173.       gzip -d < X33test.tgz | tar vxf -
  174.  
  175.  
  176. Note, xtest is no longer part of the core X11 distribution (since X11R6.3).
  177.  
  178. 1.2  Configuring the source before building
  179.  
  180. It is recommended that you start the configuration process by going to the
  181. xc/config/cf directory, and copying the file xf86site.def to host.def.    Then
  182. read through the host.def file (which is heavily commented), and set any param-
  183. eters that you want for your configuration.  You can usually find out what the
  184. default settings are by checking the .cf file(s) relevant to your OS.
  185.  
  186. Unlike previous versions, imake can now automatically detect and set the vari-
  187. ous OS*Version parameters, so you shouldn't need to enter those settings
  188. explicitly.
  189.  
  190. If you are using just the X33src-1.tgz part of the source dist, you will need
  191. to define BuildFonts to NO.
  192.  
  193. If you are using the ``servers only'' distribution, you will need to define
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. Building XFree86
  203.  
  204.  
  205.  
  206. BuildServersOnly to YES.
  207.  
  208. 1.3  Building and installing the distribution
  209.  
  210. Before building the distribution, read through the OS-specific README file in
  211. xc/programs/Xserver/hw/xfree86/doc that is relevant to you.  Once those OS-spe-
  212. cific details have been taken care of, go the xc directory and run ``make
  213. World'' with the BOOTSTRAPCFLAGS set as described in the OS-specific README (if
  214. necessary).  It is advisable to redirect stdout and stderr to World.Log so that
  215. you can track down problems that might occur during the build.
  216.  
  217. When the build is finished, you should check World.Log to see if there were any
  218. problems.  If there weren't any then you can install the binaries.  When using
  219. the full source distribution, the installation should be done from the xc
  220. directory.  When using the ``servers only'' distribution, the install should be
  221. done from the xc/programs/Xserver directory.  To do the install, run ``make
  222. install'' and ``make install.man''.  Make sure you have enough space in
  223. /usr/X11R6 for the install to succeed.    If you want to install on a filesystem
  224. other than /usr, make a symbolic link to /usr/X11R6 before installing.
  225.  
  226. To install the binary LinkKit (in /usr/X11R6/lib/Server), run ``make
  227. install.linkkit'' from the xc directory.
  228.  
  229. To build the subset of the contrib release supported by XFree86, make sure that
  230. you have first built and installed the core distribution.  Then go to the con-
  231. trib directory and run ``xmkmf -a; make''.  When that is completed, run ``make
  232. install'' and ``make install.man'' to install it.
  233.  
  234. To build/run the xtest distribution, refer to the instructions in the file
  235. test/xsuite/NOTES.xf86.
  236.  
  237.  
  238. 2.  Reconfiguring the server (source distribution)
  239.  
  240. To build a different set of servers or servers with a different set of drivers
  241. installed:
  242.  
  243.   1.  Make sure the source for any new drivers is in the correct place (e.g.,
  244.       driver source for the SVGA server should be in a subdirectory of xc/pro-
  245.       grams/Xserver/hw/xfree86/vga256/drivers).
  246.  
  247.   2.  Change the settings of the server defines in host.def to specify which
  248.       servers you wish to build.  Also, change the driver lists to suit your
  249.       needs.
  250.  
  251.   3.  From xc/programs/Xserver, run:
  252.  
  253.         make Makefile
  254.         make Makefiles
  255.         make depend
  256.         make
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. Building XFree86
  269.  
  270.  
  271.  
  272. 3.  Reconfiguring the server (binary distribution)
  273.  
  274. If you have installed the server Binary LinkKit, it is possible to reconfigure
  275. the drivers and some of the extensions in the servers.    For details of how to
  276. do this, please refer to the README.LinkKit file.
  277.  
  278.      Generated from XFree86: xc/programs/Xserver/hw/xfree86/doc/sgml/BUILD.sgml,v 3.1.2.4 1997/06/02 03:12:42 dawes Exp $
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. Building XFree86
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.                    CONTENTS
  405.  
  406.  
  407.  
  408. 1. Building XFree86 From a Source Distribution .............................. 1
  409.    1.1 How to get the XFree86 3.3 source .................................... 1
  410.    1.2 Configuring the source before building ............................... 3
  411.    1.3 Building and installing the distribution ............................. 4
  412.  
  413. 2. Reconfiguring the server (source distribution) ........................... 4
  414.  
  415. 3. Reconfiguring the server (binary distribution) ........................... 5
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.                        i
  461.  
  462.  
  463.